import java.util.ArrayList;
import java.util.List;

class Movie {
    private String movieId;
    private String title;
    private String director;
    private List<String> actors;
    private String synopsis;
    private int duration; // 分钟
    private double score; // 0-10分
    private boolean isShowing;
    public Movie(String movieId, String title, String director, List<String> actors,
                 String synopsis, int duration, double score) {
        this.movieId = movieId;
        this.title = title;
        this.director = director;
        this.actors = new ArrayList<>(actors);
        this.synopsis = synopsis;
        this.duration = duration;
        this.score = score;
        this.isShowing = true;
    }
    public String getMovieId() { return movieId; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getDirector() { return director; }
    public void setDirector(String director) { this.director = director; }
    public List<String> getActors() { return new ArrayList<>(actors); }
    public void setActors(List<String> actors) { this.actors = new ArrayList<>(actors); }
    public String getSynopsis() { return synopsis; }
    public void setSynopsis(String synopsis) { this.synopsis = synopsis; }
    public int getDuration() { return duration; }
    public void setDuration(int duration) { this.duration = duration; }
    public double getScore() { return score; }
    public void setScore(double score) { this.score = score; }
    public boolean isShowing() { return isShowing; }
    public void setShowing(boolean showing) { isShowing = showing; }
    @Override
    public String toString() {
        return String.format("片名：%s\n导演：%s\n主演：%s\n剧情简介：%s\n时长：%d分钟\n评分：%.1f分",
                title, director, String.join(", ", actors), synopsis, duration, score);
    }
}